package com.scorpio.goods.vo;

import com.scorpio.basic.dto.NameIdDTO;
import com.scorpio.common.utils.verification.AddGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class AddGoodsSkuSpecVo extends NameIdDTO {

    @NotNull(message = "无效sku", groups = AddGroup.class)
    private Long id;

    @NotBlank(message = "sku配置失败", groups = AddGroup.class)
    @Size(min = 0, max = 20, message = "sku不可超出20个字符", groups = AddGroup.class)
    private String specName;

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public String getSpecName() {
        return specName;
    }

    public void setSpecName(String specName) {
        this.specName = specName;
    }
}
